package com.quanyan.messagepush.entity;

import java.util.HashMap;
import java.util.Map;

/**
 * Created by zhuo.shi on 2016/7/15.
 */
public class Action {

    private String actionUrl;               //动作请求的URL地址
    private Map<String, Object> param;      //参数key-value

    public Action(){}

    public Action(String actionUrl, Map<String, Object> param){
        this.actionUrl = actionUrl;
        this.param = param;
    }

    public void putToMap(String key, Object value) {
        if (param == null) {
            param = new HashMap<String, Object>();
        }
        param.put(key,value);
    }

    public String getActionUrl() {
        return actionUrl;
    }

    public void setActionUrl(String actionUrl) {
        this.actionUrl = actionUrl;
    }

    public Map<String, Object> getParam() {
        return param;
    }

    public void setParam(Map<String, Object> param) {
        this.param = param;
    }
}
